package com.synergy.stockflow.sales.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synergy.stockflow.sales.mapper.QuoteDetailsMapper;
import com.synergy.stockflow.sales.entity.QuoteDetails;
import com.synergy.stockflow.sales.service.QuoteDetailsService;
@Service
public class QuoteDetailsServiceImpl extends ServiceImpl<QuoteDetailsMapper, QuoteDetails> implements QuoteDetailsService{
    @Override
    public List<QuoteDetails> selectWL(String quoteDetailsQuotationId) {
        List<QuoteDetails> quoteDetails = baseMapper.selectWL(quoteDetailsQuotationId);
        return quoteDetails;
    }

    @Override
    public int detect(String quoteDetailsQuotationId) {
        baseMapper.delete(quoteDetailsQuotationId);
        return 0;
    }

    @Override
    public QuoteDetails selectWa(String quoteDetailsQuotationId) {
        QuoteDetails quoteDetails = baseMapper.selectWa(quoteDetailsQuotationId);
        return quoteDetails;
    }
}
